<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>
    let p = new Promise((resolve, reject) => {
        resolve('成功第一个')
    })
    let p2 = new Promise((resolve, reject) => {
        resolve('成功第二个')
    })
    let p3 = new Promise((resolve, reject) => {
        resolve('成功第三个')
    })
    let p4 = Promise.reject('失败第一个')
    let p5 = Promise.reject('失败第二个')

    const result = Promise.all([p, p2, p3, p4,p5])
    console.log(result);
    result.catch((reason) => {
        console.log(reason);
    })
</script>

</html>